#FROM maven:3.5-jdk-8-alpine as builder
FROM maven:3.8.4-openjdk-17 as builder

# Copy local code to the container image.
WORKDIR /app
#COPY pom.xml .
#COPY src ./src

COPY friendship-0.0.1-SNAPSHOT.jar .
## Build a release artifact.
#RUN mvn package -DskipTests

# Run the web service on container startup.
CMD ["java","-jar","./friendship-0.0.1-SNAPSHOT.jar","--spring.profiles.active=prod"]